//
//  Packet.h
//  EasyTip
//
//  Created by Jeffrey Palm on 2/14/09.
//  Copyright 2009 Jeffrey Palm. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HasName.h"

@class Category;

@interface Packet : HasName {
	@private
	NSString				*pid;
	NSMutableArray	*categories;
	Category				*firstCategory;
	Category				*lastCategory;	// Keep track of the last category
}

@property (nonatomic,retain)		NSString				*pid;
@property (nonatomic,retain)		NSMutableArray	*categories;
@property (nonatomic,retain)		Category				*firstCategory;

- (id)initWithName:(NSString*)name pid:(NSString*)thePid;
- (void) add:(Category*)cat;

@end
